﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "ui_MainWindow.h"

class FrameHelper;
class MainWindow : public QMainWindow
{
	Q_OBJECT

public:
	MainWindow(QWidget *parent = 0);
	~MainWindow();

protected:
	void initMainWindow();

	void displayTime();
	void setWidgetStatus(QToolButton * btn, QWidget * w);

	void deleteTabWidget(QWidget * widget);
	void setTabWidget(QWidget * widget, const QString & name);

protected slots:
	void onTimer();
	void on_listPowerCutPlan_clicked(const QModelIndex & index);
	
private:
	FrameHelper *pFrameHelper;
	QTimer *pTimer;

	QWidget *pPowerCutManager;
	QWidget *pWorkHolidayInfo;

	Ui::MainWindow ui;
};

#endif // MAINWINDOW_H
